Repository navigation
feat(google): add Gemini 4 Hydrogen text model - #607
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add
gemini-4-hydrogen(Gemini 4 Hydrogen) aftergemini-4-carbon, served by the Interactions backend (API key; Vertex also lists it GA with no allowlist):MAX_TOKENSRange(min=1, max=65536),THINKING_LEVEL["low", "medium", "high", "xhigh"],WebSearch/CodeExecution/UrlContext,ToolChoiceSupport(),Schema(), image/video/audio/document input,streaming=True.Why
Google released
gemini-4-hydrogenGA on the Gemini API, free and paid tiers, on November 12, 2026; Google Cloud lists it GA the same day.Evidence
gemini-4-hydrogen(ModelOption),ThinkingLevellow/medium/high/xhigh(plusminimal),max_output_tokens,google_search/code_execution/url_context,tool_choice,response_format,image/video/audio/documentcontent: Interactions API referenceGemini 4 Hydrogen; text/image/video/audio/PDF in, text out; max output65,536synchronous, 1,048,576 only with long decode; thinkinglow, medium, high, xhigh; search, code execution, URL context, function calling, structured outputs: Gemini 4 Hydrogenminimal; output past 65,536 needsbackground; free and paid tiers: What's new in Gemini 4 Hydrogen; GA November 12, 2026: Release notesXHIGHinThinkingLevel: GenerateContent API reference;thinking_level="MINIMAL"returns HTTP 400, long decode onv1beta1, no allowlist: Gemini 4 Hydrogen (Agent Platform); GA November 12, 2026: Model versions and lifecycleThinkingLevelalso listsminimal; live serving rejected it (call below) and wins.streaming=True: the stream call below.Files
src/celeste/modalities/text/providers/google/models.pyValidation
make ci: passLive call: made (Celeste Interactions stream,
thinking_level="low",max_tokens=16: 2 chunks, statusincompletewith usage parsed and no text, the cap spent on 13 reasoning + 3 output tokens; unarythinking_level="minimal"viaextra_body: rejected with "Thinking level THINKING_LEVEL_MINIMAL is not supported for this model")Depends on
none